package com.ssm.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;



public class Person {
    private Integer id;	//个人id

    private String username;//用户账号

    private String password;//'密码

    private String name;//姓名

    private String photo;//头像

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;//出生年月

    private String phone;//手机号码

    private String email;//邮箱

    private Integer sex;//性别

    private String degree;//学历

    private String school;//毕业院校

    private String pro;//专业

    private String salary;//期望月薪
    
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date worktime;//到岗时间

    private String exp;//工作经历

    private String tips;//个人描述

    private Integer status;//身份标识

    private Date pubtime;//注册时间

    
    public Person() {
	
	}

    
    
    public Person(Integer id, String username, String password, String name, String photo, Date birthday, String phone,
			String email, Integer sex, String degree, String school, String pro, String salary, Date worktime,
			String exp, String tips, Integer status, Date pubtime) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.name = name;
		this.photo = photo;
		this.birthday = birthday;
		this.phone = phone;
		this.email = email;
		this.sex = sex;
		this.degree = degree;
		this.school = school;
		this.pro = pro;
		this.salary = salary;
		this.worktime = worktime;
		this.exp = exp;
		this.tips = tips;
		this.status = status;
		this.pubtime = pubtime;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree == null ? null : degree.trim();
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school == null ? null : school.trim();
    }

    public String getPro() {
        return pro;
    }

    public void setPro(String pro) {
        this.pro = pro == null ? null : pro.trim();
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary == null ? null : salary.trim();
    }

    public Date getWorktime() {
        return worktime;
    }

    public void setWorktime(Date worktime) {
        this.worktime = worktime;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp == null ? null : exp.trim();
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips == null ? null : tips.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPubtime() {
        return pubtime;
    }

    public void setPubtime(Date pubtime) {
        this.pubtime = pubtime;
    }

	@Override
	public String toString() {
		return "Person [id=" + id + ", username=" + username + ", password=" + password + ", name=" + name + ", photo="
				+ photo + ", birthday=" + birthday + ", phone=" + phone + ", email=" + email + ", sex=" + sex
				+ ", degree=" + degree + ", school=" + school + ", pro=" + pro + ", salary=" + salary + ", worktime="
				+ worktime + ", exp=" + exp + ", tips=" + tips + ", status=" + status + ", pubtime=" + pubtime + "]";
	}
    
}